/*
 * @Author       : 许警
 * @Date         : 2024-04-24 11:32:20
 * @LastEditors  : 许警
 * @LastEditTime : 2024-05-21 09:11:57
 * @FilePath     : /src/views/content/translate/options/data.js
 * @Description  :
 */

export const columnsArr = [
  {
    title: '序号',
    dataIndex: 'id',
    className: 'table',
    align: 'center'
  },
  {
    title: '字段名称',
    dataIndex: 'fieldName',
    className: 'table',
    align: 'center'
  },
  {
    title: '字段类型',
    dataIndex: 'fieldType',
    className: 'table',
    align: 'center',
    fixed: 'right',
    slots: {
      customRender: 'fieldType'
    }
  }
]

export const serviceColumnsArr = [
  {
    title: '序号',
    dataIndex: 'id',
    className: 'table',
    align: 'center'
  },
  {
    title: '服务名称',
    dataIndex: 'serviceName',
    className: 'table',
    align: 'center'
  },
  {
    title: '操作',
    dataIndex: 'operation',
    className: 'table',
    align: 'center',
    fixed: 'right',
    slots: {
      customRender: 'operation'
    }
  }
]

export const dataObj = {
  loading: true,
  list: [],
  time: [],
  id: '',
  visible: false,
  selectedRowKeys: []
}

export const rulesObj = {
  realName: [
    {
      required: true,
      message: '请输入',
      trigger: 'blur'
    }
  ],
  jobName: [
    {
      required: true,
      message: '请输入',
      trigger: 'blur'
    }
  ],
  departmentId: [
    {
      required: true,
      message: '请选择'
    }
  ]
}

// 0 文本输入框 1 数字输入框 2 省市区选择器 3 多行文本域  4 时间选择器 5 普通选择器
export const typeObj = {
  0: '文本输入框',
  1: '数字输入框',
  2: '省市区选择器',
  3: '多行文本域',
  4: '时间选择器',
  5: '普通选择器'
}
